Rnoc\Retainful\Admin\Settings D

Total Complexity 412
Dependencies 15
Dependents 10
Total lines 2,355
Lines of code 1,654
Logical lines of code 818
Comment lines 462
Methods 109
Properties 4

Methods 109

Method Rating Maintainability Complexity Lines of code
getCouponSettings()
B
52 23 18
savePremiumAddOnSettings()
B
38 17 62
registerMenu()
A
44 16 38
removeFinishedHooks()
A
46 13 35
isWebhookNoticeShow()
A
45 12 41
nextScheduledAction()
A
46 11 40
scheduleEvents()
A
49 11 33
setIdentityData()
A
55 10 18
retainfulPremiumAddOnsPage()
A
48 9 32
isApiEnabled()
A
51 9 28
validateAppKey()
A
45 8 39
addNewWebHook()
A
48 8 33
removeWebhook()
A
51 8 26
getWebHookStatus()
A
48 7 33
getDefaultPremiumAddonsValues()
S
33 1 119
logMessage()
S
55 7 18
createWebhook()
S
59 7 15
validateCouponTimer()
S
42 4 58
getCategories()
S
57 6 16
sanitizeBasicHtml()
S
49 5 30
getCouponExpireDate()
S
58 5 15
saveNocSettings()
S
41 2 59
getSearchedCoupons()
S
52 4 25
getPlanDetails()
S
53 4 24
validateExitIntentPopup()
S
44 2 48
couponMessageHook()
S
65 5 8
setIdentity()
S
63 5 9
isInstalledFresh()
S
60 4 13
addDaysToDate()
S
59 4 13
addScript()
S
50 3 27
validateAddToCartPopup()
S
46 2 42
sendCouponDetails()
S
61 4 12
getUserRoles()
S
61 4 11
deleteUnusedExpiredCoupons()
S
61 4 11
getInvalidProductsForCoupon()
S
63 4 10
getInvalidCategoriesForCoupon()
S
63 4 10
getMinimumOrderTotalForCouponGeneration()
S
63 4 10
getCouponLimitPerUser()
S
63 4 10
getCouponValidUserRoles()
S
63 4 10
getCouponMessage()
S
65 4 8
isConnectionActive()
S
66 4 8
isAppConnected()
S
67 4 7
autoGenerateCouponsForOldOrders()
S
64 4 9
getApiKey()
S
67 4 7
retainfulSettingsPage()
S
50 2 30
getSecretKey()
S
67 4 7
storeDetails()
S
49 2 30
saveAcSettings()
S
49 2 29
validateBasicHtmlTags()
S
60 3 13
availableOrderStatuses()
S
64 3 11
couponFor()
S
66 3 8
getCouponValidOrderStatuses()
S
66 3 8
getUsageRestrictions()
S
65 3 10
getExpireDateFormat()
S
68 3 7
enableCouponResponsePopup()
S
66 3 8
showCouponInThankYouPage()
S
66 3 8
isCustomerPage()
S
71 3 6
needEmbededReferralWidget()
S
70 3 5
initAdminPageStyles()
S
69 3 6
trackZeroValueCarts()
S
73 3 4
isAfterPayEnabled()
S
70 3 5
needPopupWidget()
S
70 3 5
getRetainfulSettingValue()
S
74 3 4
getCartTrackingEngine()
S
73 3 4
addPostMeta()
S
65 3 9
getStorageHandler()
S
66 3 8
clean()
S
68 3 7
getDefaultNocSettings()
S
50 1 29
nextOrderCouponPage()
S
52 1 24
getDiscountData()
S
55 1 21
hasAnyActiveScheduleExists()
S
59 1 16
getEmailTemplatesSettings()
S
70 2 6
isNextOrderCouponEnabled()
S
73 2 4
validateFloat()
S
79 2 3
isBackgroundOrderSyncEnabled()
S
74 2 4
addOrderDetailMetaBoxes()
S
71 2 5
setupSurveyForm()
S
71 2 5
pluginActionLink()
S
64 2 9
getIdentityPath()
S
74 2 4
getIdentity()
S
69 2 7
getSiteTimeZone()
S
70 2 7
__construct()
S
69 2 7
isProPlan()
S
69 2 6
getPremiumAddonSettings()
S
70 2 6
switchToCloudNotice()
S
66 2 7
formatDate()
S
67 2 8
getWooPluginUrl()
S
72 2 6
getAdminSettings()
S
70 2 6
getUserPlanStatus()
S
74 2 4
getUserActivePlan()
S
74 2 4
retainfulLicensePage()
S
62 1 11
availableScheduledActions()
S
79 1 3
disconnectLicense()
S
67 1 7
validateColor()
S
79 1 3
orderMetaDetails()
S
70 1 6
unlockPremiumLink()
S
77 1 3
getDateFormatOptions()
S
64 1 10
runAbandonedCartExternally()
S
83 1 3
updateUserAsFreeUser()
S
77 1 4
getDeliveryUrl()
S
80 1 3
updatePlanDetails()
S
76 1 4
appliedCouponDefaultTemplate()
S
83 1 3
getLicenseDetails()
S
79 1 3
isNewInstallation()
S
80 1 3
unScheduleHooks()
S
76 1 4
setAbandonedCartToManageInCloud()
S
77 1 4
schedulePlanChecker()
S
78 1 3
getAllAvailableCurrencies()
S
73 1 5
getBaseCurrency()
S
76 1 4